<script setup lang="ts">
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { updateMp } from "@/utils/validate";
import themeList from '@/utils/theme';
onLaunch(() => {
  const selectedTheme = themeList['red'];
uni.setStorageSync('viewColor', selectedTheme);
  // #ifdef MP
  updateMp();
  // #endif
});
onShow(() => {
  console.log("App Show");
});
onHide(() => {
  console.log("App Hide");
});

</script>

<style lang="scss">
@import "uview-plus/index.scss";
@import "@/static/css/index.scss";
@import "@/static/css/flex.scss";
@import '@/static/css/base.css';
</style>
